import * as service from "@/service"

const prefix = "/file"

// 上传文件
export function uploadFile(data) {
    return service.fetch.post({
        url: `${prefix}/uploadFile`,
        data
    })
}

// 项目中表格导入
export function importTableFile(url, data) {
    return service.fetch.post({
        url,
        data,
        headers: {
            "Content-Type": "multipart/form-data",
        },
    })
}